package com.ikas.ai.server.schedule.handler;


import com.ikas.ai.server.module.morningpaper.service.RuntimeDataStatisticsService;
import com.xxl.job.core.handler.annotation.XxlJob;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class RuntimeDataStatisticsHandler {

    @Autowired
    private RuntimeDataStatisticsService runtimeDataStatisticsService;

    /**
     * 运行数据上报定时统计每天00:00:01
     */
    @XxlJob(value = "runtimeDataStatistics")
    public void runtimeDataStatistics() {
        log.info("===================>xxl-job runtimeDataStatistics start<===================");
        runtimeDataStatisticsService.runtimeDataStatistics();
        log.info("===================>xxl-job runtimeDataStatistics end<===================");
    }
}
